package com.icxx.learn.service;

import com.icxx.learn.service.impl.FeignServiceHytrixImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-helloworld",fallback = FeignServiceHytrixImpl.class)
public interface FeignService {
    @RequestMapping(value = "/hello", method = RequestMethod.GET)
    String sayHelloByFeign(@RequestParam(value = "name") String name);
}
